package homework;

public class HomeWorkTest {

        public static void main(String[] args) {
            Circle circle = new Circle();
            circle.setRadius(5);
            double area = circle.findArea();
            System.out.println("圆的面积为：" + area);

            Cylinder cylinder = new Cylinder();
            cylinder.setLength(10);
            double volume = cylinder.findVolume();
            System.out.println("圆柱的体积为：" + volume);
        }
    }

